package com.study.java8.test;

public class M {

    public static void main(String[] args) {


        String name="chenying";
        Person person=new Person() {
            @Override
            public void eat(String name) {
                System.out.println(name);
            }
        };

        person.eat(name);

    }

}
